import java.awt.*;
import javax.swing.*;


public class DebugPopup extends JFrame {
	private JLabel message;
	private JFrame frame;
    /** Creates new form CelsiusConverterGUI */
    public DebugPopup(String message) {
    	this.message = new JLabel(message);
    	//1. Create the frame.
    	this.frame = new JFrame("Debug message");
    	//2. Optional: What happens when the frame closes?
    	//frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	//3. Create components and put them in the frame.
    	//...create emptyLabel...
    	frame.getContentPane().add(this.message, BorderLayout.CENTER);
    	//4. Size the frame.
    	frame.pack();
    	//5. Show it.
    	frame.setVisible(true);
    }    
}
